-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Nft chainId and current global chainId arent always the same #30517
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [c2c44ea]
Page Load Metrics (1605 ± 94 ms)
Bundle size diffs
|
Builds ready [03b877d]
Page Load Metrics (1632 ± 50 ms)
Bundle size diffs
|
function NftDetails({ nft }: { nft: Nft }) { | ||
const { chainId } = useParams(); | ||
|
||
return <NftDetailsComponent nft={nft} nftChainId={chainId ?? ''} />; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make this additional wrapper to satisfy the storybook ci test. It didn't like me using useParams
in storybook and only wanted props (rather than an internal hook), so this wrapper allows me to bypass that issue while maintaining functionality.
Builds ready [ec16cfd]
Page Load Metrics (1625 ± 52 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
Builds ready [76097d3]
Page Load Metrics (1760 ± 69 ms)
Bundle size diffs
|
Description
Fixes a bug, where the network badge on the top of the nft in the nft details page did not correspond to the chain it belonged to. This resulted in navigating to send screen on a network that the NFT did not belong to.
This PR introduces two things:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2025-02-21.at.7.19.21.PM.mov
After
Screen.Recording.2025-02-21.at.6.47.06.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist